package jp.oesf.mybuttonsample;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;

public class CustomDialogSample extends Activity implements OnClickListener{
	
	MyDialog dlg;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
    
    public void onClickButton(View v){
        dlg = new MyDialog(this, this);
        dlg.show();
    }

	@Override
	public void onClick(View v) {
		Log.v("CustomDialogSample", "clicked");
		dlg.dismiss();
	}

}